//url 解析参数
function tb_parseQuery ( query ) {
   var Params = {};
   if ( ! query ) {return Params;}// return empty object
   var Pairs = query.split(/[;&]/);
   for ( var i = 0; i < Pairs.length; i++ ) {
      var KeyVal = Pairs[i].split('=');
      if ( ! KeyVal || KeyVal.length != 2 ) {continue;}
      var key = unescape( KeyVal[0] );
      var val = unescape( KeyVal[1] );
      val = val.replace(/\+/g, ' ');
      Params[key] = val;
   }
   return Params;
}

/*用法：integrate/integrate.html?w=938&h=660
var queryString = href.replace(/^[^\?]+\??/,'');
var params = tb_parseQuery( queryString );
var w  = params["w"];
var h =  params["h"];
*/